package edu.msg.hrappy.backend.model;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

/**
 * @author Torok Eniko
 */
@Entity
@Table (name = "UGroup")
public class Group extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private GroupType         typeName;
    
    public Group () {
        // CONSTR
    }
    
    public Group (final GroupType typeName) {
        this.typeName = typeName;
    }
    
    public void setTypeName (final GroupType typeName) {
        this.typeName = typeName;
    }
    
    @Enumerated (EnumType.STRING)
    public GroupType getTypeName () {
        return typeName;
    }
}
